﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace QCM.Contract1
{
    [DataContract]
    public class Questionnaire
    {
        [DataMember]
        public int Id;

        [DataMember]
        public int idCat;

        public int IdCat
        {
            get { return idCat; }
            set { idCat = value; }
        }
         
        [DataMember]
        public string Nom;

        [DataMember]
        public string Descriptif;
        
        [DataMember]
        public List<Question> Questions;
        
        public Questionnaire(int id, string nom, string descriptif)
        {
            this.Id = id;
            this.Descriptif = descriptif;
            this.Nom = nom;
            this.Questions = new List<Question>();
        }

        public Questionnaire(int id, int idCat, string nom, string descriptif)
        {
            this.Id = id;
            this.IdCat = idCat;
            this.Descriptif = descriptif;
            this.Nom = nom;
            this.Questions = new List<Question>();
        }
    }
}
